package com.gupaoedu.pattern.adapter;


/**
 * 2019/9/28
 * created by chenpp
 */
public class Test {
    public static void main(String[] args) {
        MyRestaurantAdapter1 myRestaurant1 = new MyRestaurantAdapter1();
        myRestaurant1.haveDrink();
        myRestaurant1.haveFood();
        myRestaurant1.haveSong();
        System.out.println("===============================");

        MyRestaurantAdapter2 myRestaurant2 = new MyRestaurantAdapter2(new DefaultRestaurant());
        myRestaurant2.getRestaurant().haveDrink();
        myRestaurant2.getRestaurant().haveFood();
        myRestaurant2.haveSong();
    }
}
